import request from '@/utils/request'

// 查询取消订单记录列表
export function listCancellation(query) {
  return request({
    url: '/system/cancellation/list',
    method: 'get',
    params: query
  })
}

// 查询取消订单记录详细
export function getCancellation(id) {
  return request({
    url: '/system/cancellation/' + id,
    method: 'get'
  })
}

// 新增取消订单记录
export function addCancellation(data) {
  return request({
    url: '/system/cancellation',
    method: 'post',
    data: data
  })
}

// 修改取消订单记录
export function updateCancellation(data) {
  return request({
    url: '/system/cancellation',
    method: 'put',
    data: data
  })
}

// 删除取消订单记录
export function delCancellation(id) {
  return request({
    url: '/system/cancellation/' + id,
    method: 'delete'
  })
}
